﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using TPAdministracion.ws;

namespace TPAdministracion.Forms
{
    public partial class ServiciosAgregarEliminar : Form
    {
        public ServiciosAgregarEliminar()
        {
            InitializeComponent();
        }

        private void ServiciosAgregarEliminar_Load(object sender, EventArgs e)
        {
            ws.AdministradorWSClient servicios = new AdministradorWSClient();
            ws.servicio[] servs;
            servs = servicios.findAllServicio();

             ws.AdministradorWSClient comisiones = new AdministradorWSClient();
            ws.comision[] coms;
            coms = comisiones.findAllComision();

            for (int i = 0; i < servs.Length; i++)
            {
                this.listBox1.Items.Add(servs[i].nombre);
                

            }


        }
    }
}
